from datetime import date, datetime
from horseanalysis.model.race import Race
import re

class FetcherBase:
  def __init__(self, race, batch_time):
    self.race = race
    self.date_query = race.date_query()
    self.venue = race.venue
    self.race_no = race.race_no
    self.batch_time = batch_time
    
  def getUrl(self):
    raise NotImplementedError("Subclass must implement abstract method")
    
  def getData(self):
    raise NotImplementedError("Subclass must implement abstract method")
    
  def getResult(self):
    raise NotImplementedError("Subclass must implement abstract method")